<div ng-controller="orderListConCtr">
    <div class="jtable-wrap mt-10 order-list">
        <table class="table-item" width="100%">
            <tr>
                <th width="35%">商品</th>
                <th width="10%"> 重量</th>
                <th width="10%"> 数量</th>
                <th width="10%"> 总付款(元)</th>
                <th width="15%"> 买家备注</th>
                <th width="10%"> 状态</th>
                <th width="10%"> 交易操作</th>
            </tr>
        </table>
        <table class="table-item mt-10" width="100%" ng-repeat="tabItem in listData.records track by $index">
            <tbody>
            <tr>
                <td class="ta-l" colspan="10" style="background-color: #efefef; height: 24px; line-height: 24px;;">
                    <div class="f-l">
                        <span class="ml-10 f-l" ng-if="tabItem.nickname"> 下单会员：{{tabItem.nickname}} </span>
                        <span class="ml-10 f-l"> 下单时间：{{tabItem.createTime || tabItem.deliveryTime}} </span>
                        <span class="ml-10 f-l"> 订单编号：{{tabItem.orderNo}} </span>
                    </div>
                    <div class="f-r mr-10">
                        <a href="{{prefix}}order/orderList/detail.html&{{tabItem.orderNo}}">查看详情</a>
                    </div>
                </td>
            </tr>
            <tr ng-repeat="orderItemLineVoList in tabItem.goodsList track by $index" bindonce>
                <td width="35%">
                    <!--<a target="_blank" href="javascript:;" class="order-item">-->
                    <img ng-src="{{orderItemLineVoList.image}}" width="60" height="60" class="f-l  mr-10">

                    <div class="ta-l order-info-main">
                        <div class="goods-title">{{orderItemLineVoList.title}}</div>
                    </div>
                    <!--</a>-->
                </td>
                <td width="10%"> {{orderItemLineVoList.weight}}kg</td>
                <td width="10%"> {{orderItemLineVoList.buyNumber}}</td>
                <td width="10%">¥{{tabItem.totalAmount| number:2}}<p style="color: #b0b0b0">(含运费:￥{{tabItem.freight | number:2}})</p></td>

                <td rowspan="{{tabItem.goodsList.length}}" class="table-content lh-18" ng-if="!$index" width="15%">
                    {{tabItem.leaveMessage}}
                    <p ng-if="tabItem.refundReason" style="color: #858585">退货理由:{{tabItem.refundReason}}</p>
                </td>
                <td rowspan="{{tabItem.goodsList.length}}" class="table-content lh-18" ng-if="!$index" width="10%">
                    {{!tabItem.status ? '待支付' : ''}}
                    {{tabItem.refundStatus != 1 && tabItem.status == 1 ? '待发货' : ''}}
                    {{tabItem.refundStatus != 1 && tabItem.status == 2 ? '待收货' : ''}}
                    {{tabItem.refundStatus != 1 && tabItem.status == 3 ? '已收货' : ''}}
                    {{tabItem.status == 4 ? '已退款' : ''}}
                    {{tabItem.status == 5 ? '已关闭' : ''}}
                    {{tabItem.refundStatus == 1 ? '申请退款' : ''}}
                    <a href="javascript:;" class="d-b mt-10" ng-if="tabItem.status == 2 || tabItem.status == 3" ng-click="logistics(tabItem.orderNo)">查看物流</a>
                </td>
                <td rowspan="{{tabItem.goodsList.length}}" class="table-content lh-18" ng-if="!$index" width="10%">

                    <a href="javascript:;" class="d-b" ng-if="!tabItem.refundStatus && !tabItem.status" ng-click="upLogistics(tabItem)">修改运费</a>

                    <a href="javascript:;" class="d-b" ng-if="tabItem.refundStatus != 1 && tabItem.status == 1" ng-click="delivery(tabItem,'add')">发货</a>
                    <a href="javascript:;" class="d-b" ng-if="tabItem.refundStatus != 1 && tabItem.status == 2" ng-click="delivery(tabItem,'update')">修改快递</a>
                    <a href="javascript:;" class="d-b" ng-click="remark(tabItem)">备注</a>
                    <a href="javascript:;" class="d-b" ng-if="tabItem.refundStatus == 1" ng-click="refundAudit(tabItem)">审核</a>
                </td>
            </tr>
            </tbody>
            <tr class="main-tr lh-15" ng-if="!listData.totalCount"> <td colspan="7" class="ta-c">暂无数据</td> </tr>
        </table>

        <div class="paging" ng-if="listData.totalCount" hipac-page
             page="getData.pageNo"
             page-size="getData.pageSize"
             total="listData.totalCount"
             paging-action="foo(page,pageSize, total)">
        </div>
    </div>
</div>